
<!--main-container-part-->
<div id="content">
  <!--breadcrumbs-->
  <div id="content-header">
    <div id="breadcrumb">
      <a href="/backend/index.html" title="返回后台首页" class="tip-bottom"> <i class="icon-home"></i>
        后台首页
      </a>
      <a href="/backend/category.html" class="current">分类管理</a>
      <a href="#" class="current">分类添加</a>
    </div>
    <h1>分类添加</h1>
  </div>
  <!--End-breadcrumbs-->

  <!--Action boxes-->
  <div class="container-fluid">
    <hr>
    <div class="row-fluid">
      <div >
        <div class="widget-box">
          <div class="widget-title">
            <span class="icon"> <i class="icon-align-justify"></i>
            </span>
            <h5>分类信息</h5>
          </div>
          <div class="widget-content nopadding">
            <form method="post" class="form-horizontal" action="__CONTROLLER__/edit">
              <div class="control-group">
              <input type="hidden" name="cid" value="{$cate.cid}">
                <label class="control-label">模型选择 :</label>
                <div class="controls">
                  <select name="module_id" readonly="readonly" >
                    <option value="1" >新闻</option>
                    <option value="2" >下载</option>
                    <option value="3" >相册</option>
                    <option value="4" >产品</option>
                    <option value="5" >留言</option>
                    <option value="6" >单页</option>
                  </select>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">上级分类 :</label>
                <div class="controls">
                  <select name="pid">
                    <option value="0">----顶级栏目--</option>
                    <volist name="tree" id="vo">
                      <option  value="{$vo.cid}" <if condition="$cate['pid'] eq $vo['cid']">selected="selected"</if>>{$vo.html}{$vo.name}                      
                      </option>
                      }
                    </volist>
                  </select>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">分类名称 :</label>
                <div class="controls">
                  <input type="text" name="name" class="span6" value="{$cate.name}">
                  <input type="checkbox" name="islink" value="{$cate.islink}" class="islink" <if condition="$cate['islink'] eq 1">checked</if> >
                  &nbsp;是否外链&nbsp;&nbsp;&nbsp;&nbsp;
                  <input type="checkbox" name="display" value="{$cate.display}" <if condition="$cate['display'] eq 1">checked</if> >&nbsp;是否显示&nbsp;&nbsp;&nbsp;&nbsp;</div>
              </div>
              <div class="control-group islinkV">
                <label class="control-label">外链地址 :</label>
                <div class="controls">
                  <input type="text" name="linkurl" class="span6" value="{$cate.linkurl}"></div>
              </div>
              <div class="control-group onlink">
                <label class="control-label">SEO关键字 :</label>
                <div class="controls">
                  <input type="text" name="keywords" class="span6" value="{$cate.keywords}"></div>
              </div>
              <div class="control-group onlink">
                <label class="control-label">SEO描述 :</label>
                <div class="controls">
                  <input type="text" name="description" class="span6" value="{$cate.description}"></div>
              </div>
              <div class="control-group onlink">
                <label class="control-label">缩略图 :</label>
                <div class="controls">
                  <input type="text" name="thumbnail" class="span6" value="{$cate.thumbnail}"></div>
              </div>

              <div class="control-group onlink">
                <label class="control-label">栏目内容</label>
                <div class="controls">
                  <!-- content begin -->
                  <div class="span11">
                    <script id="container" name="content" type="text/plain">{$cate.content}
                    </script>
                  </div>
                  <!-- content end -->
                </div>
              </div>
              <div class="control-group onlink">
                <label class="control-label">列表页模版</label>
                <div class="controls">
                  <input type="text" name="temp_list" class="span2" value="{$cate.temp_list}"></div>
              </div>
              <div class="control-group onlink">
                <label class="control-label">内容页模版</label>
                <div class="controls">
                  <input type="text" name="temp_detail" class="span2" value="{$cate.temp_detail}"></div>
              </div>

              <div class="control-group">
                <label class="control-label">权重 :</label>
                <div class="controls">
                  <input type="text" name="weight" class="span1" value="{$cate.weight}">&nbsp;&nbsp;越小的排越前</div>
              </div>
              <div class="form-actions">
                <button type="submit" class="btn btn-success" >修改分类</button>
              </div>
            </form>
          </div>
        </div>

      </div>

    </div>

  </div>
</div>

<!--end-main-container-part-->

<!-- 加载编辑器开始 -->

    <!-- 配置文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>
<!-- 加载编辑器结束 -->